Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: address com.apple.ContactsUI.LimitedAccessPromptView in troubleshooting #2474

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Sep 19, 2024

Adding appium/appium#20591 as troubleshooting.

Maybe users will check com.apple.springboard for this dialogs, thus adding this description near place would help so far.

I wondered if we could use com.apple.ContactsUI.LimitedAccessPromptView instead of com.apple.springboard for iOS 18+ in WDA (since so far, it looks like elements available via com.apple.springboard were also available via com.apple.ContactsUI.LimitedAccessPromptView as well).

I haven't investigated this com.apple.ContactsUI.LimitedAccessPromptView behavior well yet.

iOS 18 introduced a new process, named `com.apple.ContactsUI.LimitedAccessPromptView`. See [this issue](https://github.com/appium/appium/issues/20591) for more details.
As of XCUITest driver v7.26.4, the only workaround to interact with the view is below method:

- `defaultActiveApplication` setting in [Settings](../reference/settings.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does activateApp not help in this case?

Copy link
Member Author

@KazuCocoa KazuCocoa Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. It looks like no. Activating com.apple.ContactsUI.LimitedAccessPromptView brought the bundle id to the front or springboard?, then the running app went to background. It caused home screen only view. This new view was maybe running over the app under test's GUI but not remains on the home screen like system level dialog.

@@ -49,6 +49,25 @@ XCUITest driver offers a couple of approaches to handle them:

[`mobile: activeAppInfo`](../reference/execute-methods.md#mobile-activateappinfo) helps to understand what application (bundleId) is considered as active for the XCUITest driver.

## Interact with dialogs managed by `com.apple.ContactsUI.LimitedAccessPromptView`

iOS 18 introduced a new process, named `com.apple.ContactsUI.LimitedAccessPromptView`. See [this issue](https://github.com/appium/appium/issues/20591) for more details.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will later add another extension to be able to list all active apps

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KazuCocoa KazuCocoa merged commit 7419f29 into master Sep 19, 2024
4 checks passed
@KazuCocoa KazuCocoa deleted the update-troubleshoot branch September 19, 2024 21:08
Copy link
Contributor

🎉 This PR is included in version 7.27.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants